<?php
/**
 * +------ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER * ---------+
 * +----------------------------------------------------------------------------+
 * | PHPKiisf - Keep It in Simple Framework										|
 * | Version 1.0																|
 * | Copyright (C) <2013>  Mario Cezzare <mcezzare@gmail.com>					|
 * | Blog: http://mcezzare.blogspot.com.br										|
 * |																			|
 * | This program is part of PHPKiisf, and is free software: you can			|
 * | redistribute it and/or modify it under the terms of the GNU 				|
 * | General Public License as published by										|
 * | the Free Software Foundation, either version 3 of the License, or			|
 * | (at your option) any later version.										|
 * |																			|
 * | This program is distributed in the hope that it will be useful,			|
 * | but WITHOUT ANY WARRANTY; without even the implied warranty of				|
 * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the				|
 * | GNU General Public License for more details.								|
 * | You should have received a copy of the GNU General Public License			|
 * | along with this program.  If not, see <http://www.gnu.org/licenses/>.		|
 * +----------------------------------------------------------------------------+
 * | Author : <Mario Cezzare Angelicola Chiodi> <mcezzare@gmail.com>			|
 * +----------------------------------------------------------------------------+
 * | Contributors																|
 * |																			|
 * +----------------------------------------------------------------------------+
 *
 */
/**
 * This file is the framework about description and same examples
 *
 * @package Templates
 * @access public
 * @since 2013-03-08
 * @author Mario Cezzare <mcezzare@gmail.com>
 */
?>
<?
require_once sprintf( "%s/%s%s" , base_template::$public_dir , 'header' , INCLUDE_EXTENSION ) ;
require_once sprintf( "%s/%s%s" , base_template::$public_dir , 'navbar' , INCLUDE_EXTENSION ) ;


//just to minify
$global_params	 = base_template::$global_params ;
/**
 * Verifiy if this page is running on test mode
 */
$test_mode		 = false ;
if ( is_array( $global_params ) ) {
		if ( in_array( "test" , $global_params[ 0 ] ) ) {
				$test_mode = true ;
		}
}
//uncomment for debug
//echo __FILE__ . "<br>" ;
//print_r( dispatcher::$_active_route ) ;
//print_r( $global_params ) ;
?>


<div class="container">
		<div class="hero-unit">
				<h1>
						<img src="<?= base_template::$public_media_dir ?>/img/icon_database.png"/><?= base_template::$section_name ; ?>

				</h1>
				<p>Test DB</p>

		<!--<p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>-->
		</div>
		<div class="container">
				<?
				/* @todo : control this via post */
				phpkiisf_controller::test_db_config() ;
				?>
		</div>
		<div class="span12">

				<hr>
				<footer>
						<p>
								&copy; <a href="<?= FMW_URL_ABOUT ; ?>" target="_blank">PHPKissf 2013</a>
						</p>
				</footer>
		</div>
</div>
</div>
<!-- /container -->
<?
require_once sprintf( "%s/%s%s" , base_template::$public_dir , 'footer' , INCLUDE_EXTENSION ) ;
?>
